package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysRole implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String roleCode;

    /**
     * Attribute roleCode Be Seted Falg
     */
    private boolean roleCodeSetted = false;

    /**
    * Attribute roleCode is Null Falg
    */
    private boolean roleCodeNull = false;
    private String roleName;

    /**
     * Attribute roleName Be Seted Falg
     */
    private boolean roleNameSetted = false;

    /**
    * Attribute roleName is Null Falg
    */
    private boolean roleNameNull = false;
    private String roleType;

    /**
     * Attribute roleType Be Seted Falg
     */
    private boolean roleTypeSetted = false;

    /**
    * Attribute roleType is Null Falg
    */
    private boolean roleTypeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String defaultFlag;

    /**
     * Attribute defaultFlag Be Seted Falg
     */
    private boolean defaultFlagSetted = false;

    /**
    * Attribute defaultFlag is Null Falg
    */
    private boolean defaultFlagNull = false;
    private java.util.Date modifyTime;

    /**
     * Attribute modifyTime Be Seted Falg
     */
    private boolean modifyTimeSetted = false;

    /**
    * Attribute modifyTime is Null Falg
    */
    private boolean modifyTimeNull = false;
    private long operatorId;

    /**
     * Attribute operatorId Be Seted Falg
     */
    private boolean operatorIdSetted = false;

    /**
    * Attribute operatorId is Null Falg
    */
    private boolean operatorIdNull = false;
    private String operatorName;

    /**
     * Attribute operatorName Be Seted Falg
     */
    private boolean operatorNameSetted = false;

    /**
    * Attribute operatorName is Null Falg
    */
    private boolean operatorNameNull = false;
    private String domainTitleKey;

    /**
     * Attribute domainTitleKey Be Seted Falg
     */
    private boolean domainTitleKeySetted = false;

    /**
    * Attribute domainTitleKey is Null Falg
    */
    private boolean domainTitleKeyNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;
    private int domainSortIndex;

    /**
     * Attribute domainSortIndex Be Seted Falg
     */
    private boolean domainSortIndexSetted = false;

    /**
    * Attribute domainSortIndex is Null Falg
    */
    private boolean domainSortIndexNull = false;
    private String domainIcon;

    /**
     * Attribute domainIcon Be Seted Falg
     */
    private boolean domainIconSetted = false;

    /**
    * Attribute domainIcon is Null Falg
    */
    private boolean domainIconNull = false;

    public SysRole() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get roleCode
         *
         * @return String
         */
    final public String getRoleCode() {
        if (isRoleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(roleCode);
        }
    }

    /**
     * Set roleCode
     *
     * @param String
     */
    final public void setRoleCode(String roleCode) {
        this.roleCode = StringUtils.trim(roleCode);

        this.roleCodeSetted = true;

        this.setRoleCodeNull(this.roleCode == null);
    }

    /**
     * Get roleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleCodeSetted() {
        return this.roleCodeSetted;
    }

    /**
     * Set roleCode Null
     *
     */
    final public void setRoleCodeNull() {
        this.roleCodeNull = true;
    }

    final public void setRoleCodeNull(boolean aNullFlag) {
        this.roleCodeNull = aNullFlag;
    }

    final public boolean isRoleCodeNull() {
        return this.roleCodeNull;
    }

    /**
         * Get roleName
         *
         * @return String
         */
    final public String getRoleName() {
        if (isRoleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(roleName);
        }
    }

    /**
     * Set roleName
     *
     * @param String
     */
    final public void setRoleName(String roleName) {
        this.roleName = StringUtils.trim(roleName);

        this.roleNameSetted = true;

        this.setRoleNameNull(this.roleName == null);
    }

    /**
     * Get roleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleNameSetted() {
        return this.roleNameSetted;
    }

    /**
     * Set roleName Null
     *
     */
    final public void setRoleNameNull() {
        this.roleNameNull = true;
    }

    final public void setRoleNameNull(boolean aNullFlag) {
        this.roleNameNull = aNullFlag;
    }

    final public boolean isRoleNameNull() {
        return this.roleNameNull;
    }

    /**
         * Get roleType
         * com.ourteam.system.dao.SysRoleTypeEnum
         * @return String
         */
    final public String getRoleType() {
        if (isRoleTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(roleType);
        }
    }

    /**
     * Set roleType
     * com.ourteam.system.dao.SysRoleTypeEnum
     * @param String
     */
    final public void setRoleType(String roleType) {
        this.roleType = StringUtils.trim(roleType);

        this.roleTypeSetted = true;

        this.setRoleTypeNull(this.roleType == null);
    }

    /**
     * Get roleType Has Been Setted
     * com.ourteam.system.dao.SysRoleTypeEnum
     * @return boolean
     */
    final public boolean isRoleTypeSetted() {
        return this.roleTypeSetted;
    }

    /**
     * Set roleType Null
     * com.ourteam.system.dao.SysRoleTypeEnum
     */
    final public void setRoleTypeNull() {
        this.roleTypeNull = true;
    }

    final public void setRoleTypeNull(boolean aNullFlag) {
        this.roleTypeNull = aNullFlag;
    }

    final public boolean isRoleTypeNull() {
        return this.roleTypeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get defaultFlag
         *
         * @return String
         */
    final public String getDefaultFlag() {
        if (isDefaultFlagNull()) {
            return null;
        } else {
            return StringUtils.trim(defaultFlag);
        }
    }

    /**
     * Set defaultFlag
     *
     * @param String
     */
    final public void setDefaultFlag(String defaultFlag) {
        this.defaultFlag = StringUtils.trim(defaultFlag);

        this.defaultFlagSetted = true;

        this.setDefaultFlagNull(this.defaultFlag == null);
    }

    /**
     * Get defaultFlag Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDefaultFlagSetted() {
        return this.defaultFlagSetted;
    }

    /**
     * Set defaultFlag Null
     *
     */
    final public void setDefaultFlagNull() {
        this.defaultFlagNull = true;
    }

    final public void setDefaultFlagNull(boolean aNullFlag) {
        this.defaultFlagNull = aNullFlag;
    }

    final public boolean isDefaultFlagNull() {
        return this.defaultFlagNull;
    }

    /**
         * Get modifyTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getModifyTime() {
        return modifyTime;
    }

    /**
     * Set modifyTime
     *
     * @param java.util.Date
     */
    final public void setModifyTime(java.util.Date modifyTime) {
        this.modifyTime = modifyTime;

        this.modifyTimeSetted = true;

        this.setModifyTimeNull(this.modifyTime == null);
    }

    /**
     * Get modifyTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModifyTimeSetted() {
        return this.modifyTimeSetted;
    }

    /**
     * Set modifyTime Null
     *
     */
    final public void setModifyTimeNull() {
        this.modifyTimeNull = true;
    }

    final public void setModifyTimeNull(boolean aNullFlag) {
        this.modifyTimeNull = aNullFlag;
    }

    final public boolean isModifyTimeNull() {
        return this.modifyTimeNull;
    }

    /**
         * Get operatorId
         *
         * @return long
         */
    final public long getOperatorId() {
        return operatorId;
    }

    /**
     * Set operatorId
     *
     * @param long
     */
    final public void setOperatorId(long operatorId) {
        this.operatorId = operatorId;

        this.operatorIdSetted = true;

        this.setOperatorIdNull(false);
    }

    /**
     * Get operatorId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperatorIdSetted() {
        return this.operatorIdSetted;
    }

    /**
     * Set operatorId Null
     *
     */
    final public void setOperatorIdNull() {
        this.operatorIdNull = true;
    }

    final public void setOperatorIdNull(boolean aNullFlag) {
        this.operatorIdNull = aNullFlag;
    }

    final public boolean isOperatorIdNull() {
        return this.operatorIdNull;
    }

    /**
         * Get operatorName
         *
         * @return String
         */
    final public String getOperatorName() {
        if (isOperatorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(operatorName);
        }
    }

    /**
     * Set operatorName
     *
     * @param String
     */
    final public void setOperatorName(String operatorName) {
        this.operatorName = StringUtils.trim(operatorName);

        this.operatorNameSetted = true;

        this.setOperatorNameNull(this.operatorName == null);
    }

    /**
     * Get operatorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperatorNameSetted() {
        return this.operatorNameSetted;
    }

    /**
     * Set operatorName Null
     *
     */
    final public void setOperatorNameNull() {
        this.operatorNameNull = true;
    }

    final public void setOperatorNameNull(boolean aNullFlag) {
        this.operatorNameNull = aNullFlag;
    }

    final public boolean isOperatorNameNull() {
        return this.operatorNameNull;
    }

    /**
         * Get domainTitleKey
         *
         * @return String
         */
    final public String getDomainTitleKey() {
        if (isDomainTitleKeyNull()) {
            return null;
        } else {
            return StringUtils.trim(domainTitleKey);
        }
    }

    /**
     * Set domainTitleKey
     *
     * @param String
     */
    final public void setDomainTitleKey(String domainTitleKey) {
        this.domainTitleKey = StringUtils.trim(domainTitleKey);

        this.domainTitleKeySetted = true;

        this.setDomainTitleKeyNull(this.domainTitleKey == null);
    }

    /**
     * Get domainTitleKey Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainTitleKeySetted() {
        return this.domainTitleKeySetted;
    }

    /**
     * Set domainTitleKey Null
     *
     */
    final public void setDomainTitleKeyNull() {
        this.domainTitleKeyNull = true;
    }

    final public void setDomainTitleKeyNull(boolean aNullFlag) {
        this.domainTitleKeyNull = aNullFlag;
    }

    final public boolean isDomainTitleKeyNull() {
        return this.domainTitleKeyNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    /**
         * Get domainSortIndex
         *
         * @return int
         */
    final public int getDomainSortIndex() {
        return domainSortIndex;
    }

    /**
     * Set domainSortIndex
     *
     * @param int
     */
    final public void setDomainSortIndex(int domainSortIndex) {
        this.domainSortIndex = domainSortIndex;

        this.domainSortIndexSetted = true;

        this.setDomainSortIndexNull(false);
    }

    /**
     * Get domainSortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainSortIndexSetted() {
        return this.domainSortIndexSetted;
    }

    /**
     * Set domainSortIndex Null
     *
     */
    final public void setDomainSortIndexNull() {
        this.domainSortIndexNull = true;
    }

    final public void setDomainSortIndexNull(boolean aNullFlag) {
        this.domainSortIndexNull = aNullFlag;
    }

    final public boolean isDomainSortIndexNull() {
        return this.domainSortIndexNull;
    }

    /**
         * Get domainIcon
         *
         * @return String
         */
    final public String getDomainIcon() {
        if (isDomainIconNull()) {
            return null;
        } else {
            return StringUtils.trim(domainIcon);
        }
    }

    /**
     * Set domainIcon
     *
     * @param String
     */
    final public void setDomainIcon(String domainIcon) {
        this.domainIcon = StringUtils.trim(domainIcon);

        this.domainIconSetted = true;

        this.setDomainIconNull(this.domainIcon == null);
    }

    /**
     * Get domainIcon Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIconSetted() {
        return this.domainIconSetted;
    }

    /**
     * Set domainIcon Null
     *
     */
    final public void setDomainIconNull() {
        this.domainIconNull = true;
    }

    final public void setDomainIconNull(boolean aNullFlag) {
        this.domainIconNull = aNullFlag;
    }

    final public boolean isDomainIconNull() {
        return this.domainIconNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysRole) == false) {
            return false;
        }

        SysRole other = (SysRole) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("defaultFlag=");
        buffer.append(this.defaultFlag);

        buffer.append("domainSortIndex=");
        buffer.append(this.domainSortIndex);

        buffer.append("domainIcon=");
        buffer.append(this.domainIcon);

        buffer.append("modifyTime=");
        buffer.append(this.modifyTime);

        buffer.append("operatorId=");
        buffer.append(this.operatorId);

        buffer.append("operatorName=");
        buffer.append(this.operatorName);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("roleCode=");
        buffer.append(this.roleCode);

        buffer.append("roleName=");
        buffer.append(this.roleName);

        buffer.append("roleType=");
        buffer.append(this.roleType);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("domainTitleKey=");
        buffer.append(this.domainTitleKey);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("]");

        return buffer.toString();
    }
}
